package com.jt.demo5_di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestPerson {
    public static void main(String[] args) {
        String a = "spring_di.xml";
        ApplicationContext context = new ClassPathXmlApplicationContext(a);
        Person person = context.getBean(Person.class);
        person.Hayse();
        person.togo();
    }
}
